﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Photograp.Models
{
    [Table("Albums")]
    public class Album
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity), Key()]
        public int AlbumId { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public bool IsEnabled { get; set; }
        public virtual ICollection<Photo> Photos { get; set; }
        public DateTime? CreatedOn { get; set; }
        public DateTime? ModifiedOn { get; set; }
    }
}